package androidx.appcompat.widget;

import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;

class SearchView$6 implements OnKeyListener {
    final /* synthetic */ SearchView ॱ;

    SearchView$6(SearchView searchView) {
        this.ॱ = searchView;
    }

    public boolean onKey(View view, int i, KeyEvent keyEvent) {
        if (this.ॱ.ॱॱ == null) {
            return false;
        }
        if (this.ॱ.ˊ.isPopupShowing() && this.ॱ.ˊ.getListSelection() != -1) {
            return this.ॱ.ˏ(view, i, keyEvent);
        }
        if (this.ॱ.ˊ.ˋ() || !keyEvent.hasNoModifiers() || keyEvent.getAction() != 1 || i != 66) {
            return false;
        }
        view.cancelLongPress();
        this.ॱ.ॱ(0, null, this.ॱ.ˊ.getText().toString());
        return true;
    }
}
